import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes = [
    {
      path: '/',
      redirect: '/home'
    },
  {
    path: '/home',
    name: 'HelloWorld',
    component: () => import('../components/HelloWorld.vue'),
  },
  {
    path: '/userlist',
    name: 'Userlist',
    component: () => import('../components/Userlist.vue'),
  },
  {
    path: '/1-3',
    name: '1-3',
    component: () => import('../components/PlayVue.vue'),
  }
];

const router = new VueRouter({
  mode: 'history',
  routes
});

export default router
